#include "junix.h"
using namespace std;

int main(int argc, char **argv)
{
	string s="hello,jun.This is SJTU.";
	s.erase(s.begin()+s.find("jun"),
			s.begin()+s.find(".This") );
	cout<<s<<endl;

	s.erase(1);
	cout<<s<<endl;
	s="hello,jun.This is SJTU.";
	s.erase(s.find("This"),-1);
	cout<<s<<endl;

	s="hello,jun.This is SJTU.";
	s.erase(s.begin()+3);
	cout<<s<<endl;

}
